package sef.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name= "employeedetail")
public class EmployeeDetail {
	
	@Id
	@Column(name="ID")
	@GeneratedValue(strategy=GenerationType.SEQUENCE)
	private long id;
	@OneToOne
	@JoinColumn(name = "employee_ID")
	private Employee employee;
	
	@OneToMany(mappedBy = "employeedetail", fetch = FetchType.LAZY)
	private List<EmployeeProjectDetail> projectList;
	
	@OneToMany(mappedBy = "employeedetail", fetch = FetchType.LAZY)
	private List<EmployeeSkill> skillList;
	
	
	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public List<EmployeeProjectDetail> getProjectList() {
		return projectList;
	}

	public void setProjectList(List<EmployeeProjectDetail> projectList) {
		this.projectList = projectList;
	}

	public List<EmployeeSkill> getSkillList() {
		return skillList;
	}

	public void setSkillList(List<EmployeeSkill> skillList) {
		this.skillList = skillList;
	}

	
	
	
	
	

}
